package com.ship.entity.bo;

import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Transient;
import java.io.Serializable;
import java.util.Date;
import java.util.List;

@Data
public class Users implements Serializable {
    @Id
    private String id;
    @Column(name = "username")
    private String username;
    @Column(name = "password")
    private String password;
    @Column(name = "email")
    private String email;
    @Column(name = "last_password_reset_date")
    private Date lastPasswordResetDate;
    @Column(name = "account_non_expired")
    private  Boolean accountNonExpired;
    @Column(name = "account_non_locked")
    private  Boolean accountNonLocked;
    @Column(name = "credentials_non_expired")
    private  Boolean credentialsNonExpired;
    @Column(name = "enabled")
    private  Boolean enabled;

    @Column(name = "vip_time")
    private Date vipTime;
    @Column(name = "create_time")
    private Date createTime;
    @Column(name = "update_time")
    private Date updateTime;
    @Column(name = "seq_no")
    private Long seqNo;

    @Transient
    private List<String> authorities;

}
